package com.fy.exception;

import com.fy.common.enums.BusinessExceptionEnum;

public class BussinessException extends RuntimeException {
    /**
     * @Description 通用业务状态码
     **/
    private int code;
    public BussinessException(BusinessExceptionEnum businessExceptionEnum) {
        super(businessExceptionEnum.getDescription());
        code = businessExceptionEnum.getCode();
    }

    public int getCode() {
        return code;
    }
}
